<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/jquery.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript" src="js/md5.js"></script>
	</head>
	<body>
	</body>
	
	<script>
		var rptType=5
		var rpttime=1
		var areaid=3501
		var secret='2020abc'
		var iLng=116.417854
		var iLat=39.921988
		var iRange=15
		function getData(url) {
			var randNum = Math.floor(Math.random() * 1000000000)
			var jiamistr ='areaid=' + areaid + 'randNum=' + randNum + 'rpttime=' + rpttime + 'rptType=' + rptType
			var jiami = $.md5(jiamistr) + secret;
			var sign = $.md5(jiami)
			$.ajax({
				url: url,
				data: {
					rpttime,
					rptType,
					areaid,
					randNum,
					sign
				},
				dataType: 'json',	
				type: 'get',
				success: function(data) {
					console.log(data)
				},
				error: function(ee) {
					console.log(ee)
				}
			});
		}
		getData('http://www.xuebanjicai.com:8166/Apps/ws/101/api/screen_data.asmx/getworkerData')
	</script>
</html>
